package com.ccsoft.atools.model;

import com.ccsoft.atools.utils.JacksonDateDeserializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ToString
public class RoadTrip implements Serializable {
    private Integer iid;


    @JsonDeserialize(using = JacksonDateDeserializer.class)
//    @JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",timezone="GMT+8")
//    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date bill_date;

    private String client;

    private Integer one_way;

    private BigDecimal kilometer;

    private BigDecimal kilometer_amount;

    private BigDecimal oil_cost;

    private BigDecimal oil_amount;

    private String business;

    private String remark;

    private Date create_time;

    private Boolean bool_test;

    private static final long serialVersionUID = 1L;

}